#include "FunctionDefinition.h"

using namespace std;

FunctionDefinition::~FunctionDefinition()
{
	delete codeBlock;
	delete p;
}

void FunctionDefinition::accept(Visitor & v)
{ v.visitFunctionDefinition(this); }

ParamNode * FunctionDefinition::getParamNode()
{ return p; }

StatementList * FunctionDefinition::getCodeBlock()
{ return codeBlock; }

